

eng_line = "I love programming with Python!"

def sentence_convertor(eng_line):
    words_arr = eng_line.split()
    symbol = words_arr[-1][-1]
    words_arr[-1] = words_arr[-1].rstrip(symbol)
    eng_line_new = []
    for i in range(1,len(words_arr)+1):
      eng_line_new.append(words_arr[-i])
    eng_line_new[-1] = eng_line_new[-1] + symbol
    eng_line_new = ' '.join(eng_line_new)
    print('Original line: {}'.format(eng_line))
    print('Reversed line: {}'.format(eng_line_new))
if __name__ == '__main__':
    sentence_convertor(eng_line)
